/** @jsxImportSource @emotion/react */
import * as React from "react";
import { OriginalViewProps, } from "../../common/base";
import {config设备概况, EntranceSetup, } from "./orcBase";
import { createItem,  } from "../../common/eHelper";
import {useRecordListSubr} from "../../hook/useRecordListSub";
import {ConclusionDeThmemal, VsProjects默认} from "./Conclusion";
import {ProjectListRq} from "../../vessel/editProj";
import {CauseAnalysis, OtherProblems, SituationSuggest} from "./SituationSuggest";
import {TestInstruction} from "./TestInstruction";
import {InstrumentDesc} from "./InstrumentDesc";
import {Comprehensive} from "./Comprehensive";
import {ThreeConfigRaft} from "../../gas/editor";


const recordPrintList =[
  createItem('Entrance', <EntranceSetup/>),
  createItem('ProjectList', <ProjectListRq config={VsProjects默认}  label={'目录页'}/>),
    // createItem('Survey', <DeviceSurveyPrf config={config设备概况} label={'锅炉热效率简单测试-设备概况'}/>),
  createItem('Survey', <ThreeConfigRaft config={config设备概况} label={'锅炉能效测试综合报告-设备概况'}/>),
  createItem('Conclusion', <ConclusionDeThmemal label={'一、锅炉能效测试综合报告(下)'}/>),

  createItem('TestInstruction', <TestInstruction label='二、测试工况及说明'/>),
  createItem('InstrumentDesc', <InstrumentDesc label='三、测试仪表说明'/>),
  createItem("Comprehensive", <Comprehensive label={'四、测试数据综合表'}/>),
  createItem('SituationSuggest', <SituationSuggest label='五、测试情况分析和建议表(上)'/>),
  createItem('CauseAnalysis', <CauseAnalysis label='五、测试情况分析和建议表(中)'/>),
  createItem('OtherProblems', <OtherProblems label='五、测试情况分析和建议表(下)'/>),
  createItem('_Controller',  <></>),
];

export const OriginalView=
  React.forwardRef((
    { action: modAction,  verId, repId='', rep}
    :OriginalViewProps, ref
  ) => {
    const {list}=useRecordListSubr(ref,rep,recordPrintList,modAction,verId);
    return <React.Fragment>
      {list}
    </React.Fragment>;
  } );
